﻿@using Topro.Entity.Response.Log
@using Topro.Entity.Enum

@model Topro.Entity.PagedList<LogQueryResponse>

<div class="data-body data-scroll">
    <div class="data-view">
        <div class="data-div-view table-responsive">
            <table class="table table-hover table-striped table-bordered">
                <thead>
                    <tr>
                        <th class="t_l">内容</th>
                        <th width="100">级别</th>
                        <th width="100">来源</th>
                        <th width="100">Ip</th>
                        <th width="110">创建人</th>
                        <th width="150">创建时间</th>
                    </tr>
                </thead>
                <tbody>
                    @if (Model != null && Model.TData != null && Model.TData.Any())
                    {
                        foreach (var item in (List<Topro.Entity.Response.Log.LogQueryResponse>)Model.TData)
                        {
                            <tr>
                                <td class="t_l">@(item.Message)</td>
                                <td width="100">@(item.Level)</td>
                                <td width="100">@(item.Source)</td>
                                <td width="100">@(item.Ip)</td>
                                <td width="110">@(item.CreatedByString)</td>
                                <td width="150">@(item.CreatedDate.ToString("yyyy-MM-dd HH:mm:ss"))</td>
                            </tr>
                        }
                    }
                    else
                    {
                        <tr>
                            <td colspan="6" class="t_c">暂无记录</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
<!-- 必要的分页参数设置 -->
<input type="hidden" id="TotalCount" value="@(Model != null ? Model.TotalCount : 0)" />